package dao;

import model.PacsData;
import org.apache.ibatis.annotations.Param;

public interface IPacsDataDao {

    int deleteByPrimaryKey(Integer id);

    int insert(PacsData record);

    int insertSelective(PacsData record);

    PacsData selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PacsData record);

    int updateByPrimaryKeyWithBLOBs(PacsData record);

    int updateByPrimaryKey(PacsData record);

    /**
     * @Author: 杨青桦
     * @Description:  根据申请单号查找最后一次的pacs记录，其它设备作废
     * @Date: 2017/7/7 17:56
     * @param requestNum
     * @return
     */
    PacsData selectByRequestNum(String requestNum);


    /**
     * @Author: 杨青桦
     * @Description:  根据门诊编号和住院编号查找最后一次的pacs记录
     * @Date: 2017/7/10 13:53
     * @param num
     * @return
     */
    PacsData selectByMzOrZyNum(@Param("mznum") String mznum ,@Param("zynum") String zynum);
}